package cn.ld.fj.pojo;

import com.google.common.collect.Lists;

import java.io.Serializable;
import java.util.List;

/**
 * Created by lixiangjun on 2017/8/1.
 */
public class TreePojo implements Serializable {
    private Long id;
    private Long pid;
    private String name;
    private boolean open;
    private List<TreePojo> children = Lists.newArrayList();

    private boolean orderRefer;

    public boolean isOrderRefer() {
        return orderRefer;
    }

    public void setOrderRefer(boolean orderRefer) {
        this.orderRefer = orderRefer;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isOpen() {
        return open;
    }

    public void setOpen(boolean open) {
        this.open = open;
    }

    public List<TreePojo> getChildren() {
        return children;
    }

    public void setChildren(List<TreePojo> children) {
        this.children = children;
    }
}
